package com.yanqu.road.tools;

import com.alibaba.excel.EasyExcel;

public class ExcelReader {
    private String file;


    public ExcelReader(String file) {
        this.file = file;
    }

    public ExcelData read() {
        ExcelListener listener = new ExcelListener();
        EasyExcel.read(file, listener).sheet().autoTrim(false).doRead();
        return listener.getExcelData();
    }
}
